Object of type 'QuerySet' is not JSON serializable
在Django框架中,我们不能直接将QuerySet对象通过 HttpResponse(json.dumps(QeurySet))返回给前端Ajax.... 否则会报错:Object of type ...
在Django框架中,我们不能直接将QuerySet对象通过 HttpResponse(json.dumps(QeurySet))返回给前端Ajax.... 否则会报错:Object of type ...